package com.zeta.auth.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.zetaframework.base.entity.StateEntity;

import java.io.Serial;

/**
 * 用户信息
 *
 * @author gcc
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user")
public class UserInfo extends StateEntity<Long, Integer> {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 用户名 */
    @TableField(value = "username")
    private String username;

    /** 账号 */
    @TableField(value = "account")
    private String account;

    /** 密码 */
    @TableField(value = "password")
    private String password;

    /** 性别 0未知 1男 2女 */
    @TableField(value = "sex")
    private Integer sex;

    /** 头像 */
    @TableField(value = "avatar")
    private String avatar;

}
